function dateToFormat2(originDate) {
	if (!originDate) return
	const dt = new Date(originDate);
	const y = dt.getFullYear();
	const m = (dt.getMonth() + 1 + "").padStart(2, "0");
	const d = (dt.getDate() + "").padStart(2, "0");

	const hh = (dt.getHours() + "").padStart(2, "0");
	const mm = (dt.getMinutes() + "").padStart(2, "0");
	const ss = (dt.getSeconds() + "").padStart(2, "0");

	return `${y}${m}${d}${hh}${mm}${ss}`;
}
function dateToFormat(timeString) {
	if (!timeString) return
	return timeString.substring(0, 4) + '-' + timeString.substring(4, 6) + '-' + timeString.substring(6, 8)
}
module.exports = {
	dateToFormat2: dateToFormat2,
	dateToFormat,
}